package edu.bw.Config;


import org.springframework.context.annotation.*;
import org.springframework.transaction.annotation.EnableTransactionManagement;

import java.sql.Connection;


@Configuration
@ComponentScan("edu.bw")
@ComponentScan("com.myspring")
@PropertySource("classpath:db.properties")
@Import({DBConfig.class, TransactionConfig.class})
@EnableAspectJAutoProxy
@EnableTransactionManagement
public class SpringConfig {

    @Bean("threadLocal")
    public ThreadLocal<Connection>  creatThreadLocal(){
        return new ThreadLocal<>();
    }
}
